package com.example.demo.server;

import com.example.demo.dao.BookDao;
import com.example.demo.dto.PageLimit;
import com.example.demo.pojo.Book;
import com.example.demo.server.info.BookServerInfo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServer implements BookServerInfo {

    @Resource
    BookDao bookDao;

    @Override
    public List<Book> selectAllBook(PageLimit pageLimit) {
        return bookDao.selectAllBook(pageLimit);
    }
}
